package com.zjf.carpark.entities;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 张建飞
 * 社区公告实体类
 */
public class Announcements{
    private Integer announcementsId;

    //标题
    private String title;
    //时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date expirydDate;

    private String content;

    private String imgs;

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date releaseTime;

    private Integer releaseState;

    private Integer deleteState;

    public Announcements() {
    }

    public Announcements(Integer announcementsId, String title, Date expirydDate, String content, String imgs, Date releaseTime, Integer releaseState, Integer deleteState) {
        this.announcementsId = announcementsId;
        this.title = title;
        this.expirydDate = expirydDate;
        this.content = content;
        this.imgs = imgs;
        this.releaseTime = releaseTime;
        this.releaseState = releaseState;
        this.deleteState = deleteState;
    }

    public Integer getAnnouncementsId() {
        return announcementsId;
    }

    public void setAnnouncementsId(Integer announcementsId) {
        this.announcementsId = announcementsId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getExpirydDate() {
        return expirydDate;
    }

    public void setExpirydDate(Date expirydDate) {
        this.expirydDate = expirydDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public Integer getReleaseState() {
        return releaseState;
    }

    public void setReleaseState(Integer releaseState) {
        this.releaseState = releaseState;
    }

    public Integer getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(Integer deleteState) {
        this.deleteState = deleteState;
    }

    @Override
    public String toString() {
        return "Announcements{" +
                "announcementsId=" + announcementsId +
                ", title='" + title + '\'' +
                ", expirydDate=" + expirydDate +
                ", content='" + content + '\'' +
                ", imgs='" + imgs + '\'' +
                ", releaseTime=" + releaseTime +
                ", releaseState=" + releaseState +
                ", deleteState=" + deleteState +
                '}';
    }
}
